<%@page language="java" pageEncoding="UTF-8"%>    
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="java.net.*" %> 
<%@page import="net.ssta.common.LoginUser" %>

<%        
  		String path = request.getContextPath();
  		response.setHeader("ContentType","text/xml");  
        response.setHeader("Pragma","No-Cache");   
        response.setDateHeader("Expires",0);   
        response.setHeader("Cache-Control","No-Cache");  
%>

<%  
	//request.setCharacterEncoding("gbk");
	
	String userid = LoginUser.getUserId();
	
	String expid = request.getParameter("expid");
        if(expid == null ) expid="";
        String title = request.getParameter("title");          
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>   
<!--  <meta http-equiv="Content-Type" content="text/html; charset=gbk" />-->
<title>行业专家－国家安科网</title>
<!-- 
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="../common/css/style.css" />
 -->
<link href="<%=path%>/common1/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/common1/css/user.css" rel="stylesheet" type="text/css" />
   
<script language = "javascript" src = "../common/js/list.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/pool.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/page.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/check.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/log.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/message.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/search.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/setcondition.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/mycollection.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/g_variables.js" type = "text/javascript"></script>

<script type='text/javascript' src="<%=path%>/includes/js/jquery.js"></script>

<xml id="resultDom"></xml>
</head>
<script>


var fPath = "http://" + location.host + "/SSTA/expert1/";

	//推荐科研专家
    function load_expert_pos2(divid,http){
			$.ajax({
				type:"POST",
				url:http,
				error:function(msg)
				{
					//alert("操作失败，请重试！"+msg);
				},
			    success:function(data)
			    {
			    	var data = eval("("+data+")");
					var html="";
					//alert(data.length);
					for(var i=0;i<data.length&&i<4;i++){
						html+="<li style=\"width:220px;text-align:center;margin:auto;align:center;margin-top:10px;\">";
						html+="<a  target=\"_blank\"  href=\"" + fPath +"info.jsp?expid="+data[i]['expertid']+"&title="+data[i]['expertname']+"\" >";
						
						
						/*if(data[i]['photopath']==null||data[i]['photopath']=="undefined"){
								html+="<img src=\"<%=path%>/common/images/no_photo.png\" width=\"75px\" height=\"85px;\" />";
						}else{
							if(trim(data[i]['photopath'])==""){
								html+="<img src=\"<%=path%>/common/images/no_photo.png\" width=\"75px\" height=\"85px;\" />";
							}else{
								html+="<img onerror=\"javascript:this.src='<%=path%>/common/images/no_photo.png'\"  src=\"<%=path%>/expert/image/photo/"+trim(data[i]['photopath'])+"\" width=\"75px\" height=\"85px;\" />";
							} 
						}*/
						
						html+=("<img src=\"/SSTA/expert/image/photo/"+data[i]['expertid']+".jpg\" onerror=\"javascript:this.src='<%=path%>/common/images/no_photo.png'\" width=\"75px\" height=\"85px;\" "); 
						
						
						
						html+="</a>"
						
						html+="<div style=\"width:220px;line-height:25px;\"><a  target=\"_blank\"  href=\"" + fPath +"info.jsp?expid="+data[i]['expertid']+"&title="+data[i]['expertname']+"\" >"
						
						html+="姓名："+data[i]['expertname']+"</a></div>";
						html+="<div style=\"width:220px;line-height:25px;\">专业：";
						html+=data[i]['workspeciality'];
						html+="</div>";
						
						
						html+="</li>";
						
						html+="<div style=\"float:left;width:240px;height:2px;border-bottom:1px dashed #CCCCCC;\"></div>";
					}

					$("#"+divid).html(html);
				}
			});
	}
	
	
	


    $("document").ready(function()
	{
		   //按键登录
		    $("#item_180").keydown(function(e){ 
				 var curkey = e.which; 
				 if(curkey == 13){
					doSearch();
		         }
		    });
	    
           columnid = "002";
           columninfoid = "<%=expid%>";
           columninfoname = "<%=title%>"; 
           var expid = "<%=expid%>";
           var name = "<%=title%>";
           sendLog("002","行业专家",expid,name);
		   var url = "<%=path%>/expert/agent/getDetaiExpertInfo.jsp?expid=<%=expid%>&jtime=" + (new Date()).getTime();       
           XmlHttpPool.GetRemoteData(url,showDetailExpertInfo);
           
           
           //推荐专家
		    var http = "<%=path%>/front/ExpertFrontServlet?method=getRecommendExpertList&showType=ChannelShow";
			load_expert_pos2("tjzj",http);
	}); 
	
	
	function _addCollection(){
		document.getElementById("collectionurl").value=window.location.href;
		 $.ajax({
				type: "POST", url: "<%=path%>/membercenter/collection?method=addCollection",
				data:$("#collectionform").serialize(),
				error:function(){alert("与服务器失去联系，请刷新本页面后再重试！");},
				success: function(msg){
					alert("收藏操作成功!");
				}
			 });
	}
	
</script>

<body>



<%@include file="../common1/toplogin.jsp"%>
<%@include file="../common1/topbanner.jsp"%>
<%@include file="../common1/topmenu.jsp"%>



<!--页面主体部分-->
<div id="contentmain">
	
	
	<div id="all_content_left">
    	<%@include file="../common/adleft.jsp"%>
		<div id="border_box_orange" style="padding-bottom:30px;">
		    <div id="ind_title_cont_righttitle"><a href="<%=path%>/expert1/search_results.jsp?key=ChannelShow='1'&topicname=推荐专家" class="blue"><font>推荐专家</font></a><span><a href="<%=path%>/expert1/search_results.jsp?key=ChannelShow='1'&topicname=推荐专家" class="blue">更多...</a></span></div>
			<ul id="tjzj" style="margin-left:5px;">
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	</div>    


	<div id="all_content_right">
	    <div id="topsearchbox_695">
		    <form id="searchform" name="searchform" action="<%=path%>/expert1/search_results.jsp" method="post" >
				<ul>
					<li><img src="<%=path%>/common1/images/search/icon.gif" /></li>
					<li><span class="bluetitle">关键字</span></li>
					<li>
						 <input type="text" style="width:0px;border:0px;" />
	                 	 <input type="text" name="item_180" id="item_180" size="18" class="input_text_grey" value="" />
	                 　　   <input type="hidden" name="topicname" id="topicname" value=""/>
	                 　　   <input type="hidden" name="key" id="key" value="" />      
					</li>
					<li>
						<a href="javascript:doSearch();">
							<img  src="<%=path%>/common/images/search/botton1.gif" style="border:0px;margin-top:4px;"/>
						</a>
					</li>
					<li>
						<span><a href="<%=path%>/expert1/advancedsearch.jsp" target="_self">高级搜索</a></span>
					</li>
					<li>
						<a href="<%=path%>/expert1/needforexpert.jsp" target="_self">帮您找专家</a>
					</li>
				</ul>
			</form>
		</div>
		<div id="border_box">
		    <div id="ind_title"><font>当前位置：<a href="/cms" class="blue">首页</a> > <a href="<%=path%>/common1/indexSearch.jsp?searchtype=2_all" class="blue">科研专家</a> > 详细信息</font><span></span></div>
			<div id="int_show_con_title"></div>
			
			<div style="width:96%;height:2px;border-bottom:1px dashed #CCCCCC;">
			    <span></span>
				<span></span>
				<span></span>
				<span></span>
			</div>
			
			<div id="int_show_con_content" style="">
				<span id="zoom" >
	              	 
	         		 <div id="showDetailExpertInfo" style="text-align:left;margin:auto;vertical-align:top;"></div> 	
	         		 <div id="progressbar" class="bar_progress">数据加载中,请稍候......</div>									
				</span>
			</div>
			
			<div style="text-align:center;margin-top:30px;padding-bottom:20px;">
	       		<%if(userid!=null && userid!=""){//只有用户登录后才能显示收藏按钮%>
					<span onClick="javascript:_addCollection();"><img src="<%=path%>/common1/images/intshow/botton4.gif" border="0" style="cursor:pointer;" /></span>&nbsp;
                <%}%>
			</div>
		</div>
	</div>
</div>





<%@include file="../common1/bottom.jsp"%>


<form name="collectionform" id="collectionform">
<cms:infobase>
	<input type="hidden" name="channelid" id="channelid" value="13" />
    <input type="hidden" name="channelname" id="channelname" value="科研专家" />
    <input type="hidden" name="infotitle" id="infotitle" value="" />
    <input type="hidden" name="infoid" id="infoid" value="<%=expid%>" />
    <input type="hidden" name="collectionurl" id="collectionurl" value="" />
</cms:infobase>    
</form>

</body>
</html>
